<?php
class UserActivity extends SilkObjectRelationalMapping {
	public $table = 'user_activity';
	
	public function setup() {
		$this->create_belongs_to_association( 'user', 'mpUser', 'user_id' );
	}
	
	public function get_user() {
		$user = orm("mp_user")->find_by_id($this->user_id);
		return $user->first_name . " " . $user->last_name;
	}
}
?>